package org.dromara.admin.domain.bo;

import org.dromara.admin.domain.AdvancePayRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 垫资账单付款记录业务对象 hr_advance_pay_record
 *
 * @author Lion Li
 * @date 2025-09-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AdvancePayRecord.class, reverseConvertGenerate = false)
public class AdvancePayRecordBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 金额（元）
     */
    private BigDecimal amount;

    /**
     * 类型: PAYMENT(支付), REFUND(退款)
     */
    private String type;

    /**
     * 付款方式: WXPAY(微信支付), ALIPAY(支付宝支付), TRANSFER_WX(线下转账-微信), TRANSFER_ALIPAY(线下转账-支付宝), TRANSFER_BANK(线下转账-网银)
     */
    private String paymentMethod;

    /**
     * 状态: PENDING(待审核), APPROVED(通过), REJECTED(拒绝)
     */
    private String status;

    /**
     * 账单id
     */
    private Long billId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 资方id
     */
    private Long capitalUserId;

    /**
     * 出租方id
     */
    private Long lessorUserId;

    /**
     * 付款凭证
     */
    private String images;

    /**
     * 打款时间
     */
    private Date paymentTime;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 出租方审核备注
     */
    private String remarks;

    /**
     * 用户账号
     */
    private String userName;

    /**
     * 出租方账号
     */
    private String lessorUserName;

    /**
     * 资方账号
     */
    private String capitalUserName;
}
